import { TagTypeEnum } from "@prisma/client";

export enum PUBLISH_KAY {
  ALL = "all",
  PUBLISHED = "published",
  UNPUBLISHED = "unPublished",
}

export const PUBLISHED_LABEL_MAP = {
  [PUBLISH_KAY.ALL]: "全部",
  [PUBLISH_KAY.PUBLISHED]: "已发布",
  [PUBLISH_KAY.UNPUBLISHED]: "未发布",
};

export const PUBLISH_KAY_MAP = {
  [PUBLISH_KAY.ALL]: undefined,
  [PUBLISH_KAY.PUBLISHED]: true,
  [PUBLISH_KAY.UNPUBLISHED]: false,
};

export const TAG_TYPES = [TagTypeEnum.ALL, TagTypeEnum.BLOG];

export const TAG_TYPE_MAP = {
  [TagTypeEnum.ALL]: "通用",
  [TagTypeEnum.BLOG]: "博客",
};
